from os import path

basedir = path.abspath(path.dirname(__file__))

def import_config(mode):
    if mode == 'development':
        from config.develop import DevelopmentConfig
        return DevelopmentConfig
    elif mode == 'production':
        from config.production import ProductionConfig
        return ProductionConfig
    else:
        from config.test import TestingConfig
        return TestingConfig
    # # 'testing': TestingConfig,
    # # 'default': DevelopmentConfig